<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            background-color: red;
            /* border-radius: 10%; */
            animation-name: move;
            animation-duration: 2s;
            animation-timing-function: linear;
            animation-iteration-count: infinite;
            animation-direction: alternate;
        }

        @keyframes move {

            /* from{
                transform:translateX(0px);
            }
            to{
                transform:translateX(200px);
            } */
            0% {
                transform: translateX(0px) rotate(0deg);
                 background-color:pink;
                border-radius:10%;
            }

            25% {
                transform: translateX(50px) rotate(90deg);
                 background-color:pink;
                border-radius: 40%;

            }

            50%{
                transform: translateX(100px) rotate(180deg);
                background-color: purple;
                border-radius:70%;
            }

            75%{
                transform: translateX(100px) rotate(180deg);
                background-color: purple;
                border-radius:70%;
            }


            100%{
                transform: translateX(100px) rotate(180deg);
                background-color: purple;
                border-radius:70%;
            }



        }

        @keyframes scale {
            from {
                transform:none;
            }

            to {
                transform:scale(1.2);
            }
        }

        img{
            margin-top:20px;
            animation:scale 0.2s linear infinite alternate;
        }
    </style>
</head>

<body>
    <div></div>
    <img width="150px" src="../音视频/音视频/1.webp" alt="">
</body>

</html>